package com.qinyeit.serviceapp.entity.enums;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 结算方式
 */
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SettlementType {
    DAY("日结"),
    MONTH("月结"),
    CASH("货到付款");

    private final String text;


    private SettlementType(String text) {
        this.text = text;
    }
    public String getKey() {
        return this.toString();
    }

    public String getText() {
        return text;
    }
}
